package cn.xiaoliu.order.service;

import cn.xiaoliu.basic.service.IBaseService;
import cn.xiaoliu.basic.utils.PageList;
import cn.xiaoliu.order.domain.ProductOrder;
import cn.xiaoliu.order.query.ProductOrderQuery;
import cn.xiaoliu.user.domain.Logininfo;

import java.util.Map;

public interface IProductOrderService extends IBaseService<ProductOrder> {
    /**
     * 查询平台管理员的订单或店铺订单
     * @param query
     * @param logininfo
     * @return
     */
    PageList<ProductOrder> queryAdmin(ProductOrderQuery query, Logininfo logininfo);

    /**
     * 购买服务订单
     * @param params
     * @param logininfo
     * @return
     */
    String submit(Map<String, Object> params, Logininfo logininfo);

    /**
     * 取消支付
     * @param orderId
     */
    void cancelByQuartz(Long orderId);
}
